//! file: erase.cpp

#include <iostream>
#include <string>
using namespace std;
#include "gtest/gtest.h"
#include "List.hpp"

TEST(eraseTest, position)
{
	List<int> int_list;
	
	EXPECT_TRUE(int_list.erase(int_list.begin()) == int_list.begin());
	int_list.assign(1u, 2);
	EXPECT_TRUE(int_list.erase(int_list.begin()) == int_list.end());
	EXPECT_TRUE(int_list.erase(int_list.begin()) == int_list.begin());
	
}

